#include <stdio.h>

int main()
{
    FILE *p = fopen("a.dat", "w");

    int a = 100100;
    
    //往文件里面写4个BYTE的内容
    //fwrite(&a, 1, sizeof(int), p);
    fwrite(&a, sizeof(int), 1, p);

    int b = 1212121;
    fwrite(&b, sizeof(int), 1, p);

    fclose(p);
    return 0;
}

